﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebInvoicingsys.system.purchase
{
    public partial class purchasebill : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                ;
            }
        }

        //查询
        protected void btnSearch_Click(object sender, EventArgs e)
        {
            string start_date = uc_start_dates.getValue();
            string end_date = uc_end_dates.getValue();
            string supplier = uc_search_supplier.getValue();
            string pcsid = txt_pcsid.Text.Trim();

            string url = "/system/purchase/purchasebill_list.aspx?start_date={0}&end_date={1}&supplier={2}&pcsid={3}";

            url = String.Format(url, start_date, end_date, supplier, pcsid);

            Response.Redirect(url);
        }

        //添加
        protected void btnAdd_Click(object sender, EventArgs e)
        {
            string url = "/system/purchase/purchasebill_add.aspx";

            Response.Redirect(url);
        }
    }
}